import {createStore} from 'vuex'
import VuexPersistence from "vuex-persist";
import login from "./login";
import todoList from "./todoList";

//配置数据持久化
const persistence = new VuexPersistence({
    storage: window.localStorage
});

export default createStore({
    modules: {
        loginStore: login,
        todoListStore: todoList
    },
    plugins: [persistence.plugin]
})
